package com.bw.common.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import com.bw.network_sdk.entity.BaseEntity;

public class RoomUserEntity extends BaseEntity {

    public InsertUserValueEntity data;

    public static class InsertUserValueEntity {
        public InsertUserValuesEntity data;
    }

    @Entity
    public static class InsertUserValuesEntity {
        @PrimaryKey(autoGenerate = true)
        public long key;
        @ColumnInfo(name = "id")
        public int id;
        @ColumnInfo(name = "userId")
        public int userId;
        @ColumnInfo(name = "name")
        public String name;
        @ColumnInfo(name = "avatar")
        public String avatar;
        @ColumnInfo(name = "description")
        public String description;
        @ColumnInfo(name = "likeCount")
        public int likeCount;
        @ColumnInfo(name = "topCommentCount")
        public int topCommentCount;
        @ColumnInfo(name = "followCount")
        public int followCount;
        @ColumnInfo(name = "followerCount")
        public int followerCount;
        @ColumnInfo(name = "qqOpenId")
        public String qqOpenId;
        @ColumnInfo(name = "expires_time")
        public long expires_time;
        @ColumnInfo(name = "score")
        public int score;
        @ColumnInfo(name = "historyCount")
        public int historyCount;
        @ColumnInfo(name = "commentCount")
        public int commentCount;
        @ColumnInfo(name = "favoriteCount")
        public int favoriteCount;
        @ColumnInfo(name = "feedCount")
        public int feedCount;
        @ColumnInfo(name = "hasFollow")
        public boolean hasFollow;

        @Override
        public String toString() {
            return "InsertUserValuesEntity{" +
                    "key=" + key +
                    ", id=" + id +
                    ", userId=" + userId +
                    ", name='" + name + '\'' +
                    ", avatar='" + avatar + '\'' +
                    ", description='" + description + '\'' +
                    ", likeCount=" + likeCount +
                    ", topCommentCount=" + topCommentCount +
                    ", followCount=" + followCount +
                    ", followerCount=" + followerCount +
                    ", qqOpenId='" + qqOpenId + '\'' +
                    ", expires_time=" + expires_time +
                    ", score=" + score +
                    ", historyCount=" + historyCount +
                    ", commentCount=" + commentCount +
                    ", favoriteCount=" + favoriteCount +
                    ", feedCount=" + feedCount +
                    ", hasFollow=" + hasFollow +
                    '}';
        }
    }
}
